#include <iostream>
#include <signal.h>
using namespace std;

void catchsig(int sign)
{
    cout << "该信号的编号为：" << sign << endl;
}
int main()
{
    for(int i=1;i<=31;i++){
        signal(i,catchsig);
    }
    while(1){
        cout<<"运行中"<<endl;
        sleep(1);
    }
}